-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Accessing each build script's OUT_DIR
#15891
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
+177
−12
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75ff71c
to
0d5b7b0
Compare
c0d23d2
to
6c8bc08
Compare
epage
reviewed
Sep 8, 2025
epage
reviewed
Sep 8, 2025
epage
reviewed
Sep 8, 2025
epage
reviewed
Sep 8, 2025
5581004
to
c9e3081
Compare
epage
reviewed
Sep 11, 2025
epage
reviewed
Sep 11, 2025
65b6c7f
to
4117277
Compare
epage
reviewed
Sep 16, 2025
epage
reviewed
Sep 16, 2025
epage
reviewed
Sep 16, 2025
16fb171
to
8f929ff
Compare
1ab5374
to
b5150ef
Compare
r? @weihanglo rustbot has assigned @weihanglo. Use |
r? @epage |
OUT_DIR
OUT_DIR
epage
reviewed
Sep 29, 2025
epage
reviewed
Sep 29, 2025
epage
reviewed
Sep 29, 2025
epage
reviewed
Sep 29, 2025
b5150ef
to
3df2913
Compare
3df2913
to
4d74451
Compare
epage
approved these changes
Oct 3, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-build-execution
Area: anything dealing with executing the compiler
A-build-scripts
Area: build.rs scripts
A-documenting-cargo-itself
Area: Cargo's documentation
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is continuation of my work on GSoC Project : Build Script Delegation
What does this PR try to resolve?
Through this PR, I want the user to be able to access each build script's
OUT_DIR
.How to test and review this PR?
There is a feature gate
multiple-build-scripts
that can be passed viacargo-features
inCargo.toml
. So, you have to addPreferably on the top of the
Cargo.toml
and use nightly toolchain to use the featureThen, you can access the
OUT_DIR
of given build script by accessing it like a compile time environment variable, for example: